<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.etcore.com/grouptalk" prefix="grouptalk"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><c:out value="${context.title }" /></title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">


</head>

<body>
<div
	style="font-size: 12px; height: 25px; font-weight: bold; color: #808080; border-bottom: 1px solid #d2d2d4"><c:out
	value="${context.user_collections }" /></div>
<div id=collectionList
	style="vertical-align: top; overflow: hidden; height: 240px;">

<div id=collectionContent>
<table cellpadding=2 cellspacing=2 width=100% align=center>


	<c:set var="favaouriteCount" value="0" />
	<c:forEach var="favourite" items="${favourites }">

		<c:url value="viewUser${context.postfix}" var="userUrl">
			<c:param name="targetUserName" value="${favourite[1] }" />
		</c:url>
		<c:set var='currentMsgId' value='${favourite[2]}' />


		<tr>

			<td style="border-bottom: 1px dashed #d2d4d2">
			<table width=100%>
				<tr>
					<td width=60 align=center><a
						style="font-size: 12px; color: #005EAC" href="/group/${userUrl }"><c:if
						test="${not empty favourite[4] &&fn:indexOf(favourite[4],'upload')!=-1 }">
						<img src="${favourite[4]}" width=48 border=0 />
					</c:if><c:if
						test="${empty favourite[4]||fn:indexOf(favourite[4],'upload')==-1 }">
						<img src="/group/images/avatar/avatar.jpg" width=48 border=0 />
					</c:if></a></td>
					<td style="font-size: 12px; color: #808080;"><a
						style="font-size: 12px; color: #005EAC" href="/group/${userUrl }">${favourite[1]
					}</a> <c:out value="${context.msg_just_collect }" /> <c:if
						test="${!(context.msg_encryptedUrl)}">

						<a
							style="font-size: 12px; color: #005EAC; text-decoration: underline"
							href="/group/messagedetail${context.postfix }?id=${favourite[2]}"
							target=_blank><c:out value='${favourite[3] }' /></a>
					</c:if> <c:if test="${(context.msg_encryptedUrl)}">
						<c:set var='urlFragmentStr' value='?id=${favourite[2]}' />
						<c:set var='urlFragment'
							value='${grouptalk:getEncryptedStr(urlFragmentStr)}' />
						<a
							style="font-size: 12px; color: #005EAC; text-decoration: underline"
							href="/group/messagedetail<c:out value='${context.postfix }'/>/~<c:out value='${urlFragment}'/>">
						<c:out value='${favourite[3] }' /></a>
					</c:if> <br />
					<c:out value="${favourite[0] }" /></td>

				</tr>
			</table>
			</td>
		</tr>

	</c:forEach>


</table>
</div>
<div id=collectionContent2></div>
&nbsp;
</div>
<script language="javascript"> 
var speed=60
collectionContent2.innerHTML=collectionContent.innerHTML 
function collectionMarquee(){ 
if(collectionContent2.offsetTop-collectionList.scrollTop<=0) 
collectionList.scrollTop-=collectionContent.offsetHeight 
else{ 
collectionList.scrollTop++ 
} 
} 
var collectionMar=setInterval(collectionMarquee,speed) 
collectionList.onmouseover=function() {clearInterval(collectionMar);  } 
collectionList.onmouseout=function() {  collectionMar=setInterval(collectionMarquee,speed)} 
</script>
&nbsp;
<fmt:requestEncoding value="utf-8" />
</body>
</html>


